import * as homepageApi from '@/api/homepage';

export default {
  namespaced: true,
  state() {
    return {
      homeNewList: {},
    };
  },
  mutations: {
    SET_HOMENEW_LIST(state, newValue) {
      state.homeNewList = newValue;
    },
  },
  actions: {
    async upHomeNew({ commit }) {
      const res = await homepageApi.homeNew();
      commit('SET_HOMENEW_LIST', res);
    },
  },
};
